Router configuration information can come from many sources.
|
Broadly speaking, configuration components may be divided into external and internal components.
|
All Cisco router models include an asynchronous serial port.
|
This console port provides local access to the router using a console terminal (an ASCII terminal or a PC running terminal emulation software).
|
Routers also have an auxiliary port, allowing you to configure them remotely using a modem.
|
A router can be configured over any of its network interfaces.
|
You can supply configuration information to a router using

 TFTP servers
|
 virtual terminals
|
 network management stations
@@
The internal configuration components of a router include

 ROM and flash memory
|
 RAM and NVRAM
|
 Interfaces
|
Routers use ROM to store the bootstrap startup program, operating system software, and power-on diagnostics.
|
So to perform ROM upgrades you remove and replace pluggable chips on the motherboard.
|
Flash memory is erasable, reprogrammable ROM.
|
It holds an operating system image and microcode.
|
You can perform Cisco IOS software upgrades without having to remove and replace chips.
|
Flash content is retained when you switch off or restart the router.
@@
RAM is used to store operational information such as routing tables.
|
RAM also provides caching and packet buffering capabilities.
|
RAM also holds the router's running configuration file while the router is switched on.
|
Of course RAM contents are lost when you switch off or restart the router.
|
NVRAM, nonvolatile RAM, is used to store the router's startup configuration file.
|
Nonvolatile memory does not lose data when power is removed from it.
|
So the contents of the startup configuration file are maintained even when you switch off or restart the router.
|
The router's network interfaces are located on the motherboard or on separate interface modules.
|
You configure Ethernet or Token Ring interfaces to allow connection to a LAN.
|
The synchronous serial interfaces are configured to allow connection to WANs.
|
You can also configure ISDN BRI interfaces to allow connection to an ISDN WAN.
@@
Each time you switch on the router, it goes through power-on self-test diagnostics to verify basic operation of the CPU, memory and network interfaces.
|
The system bootstrap software in ROM (boot image) executes and searches for valid router operating system software (Cisco IOS image).
|
There are three places to find the Cisco IOS image to load:

 from flash memory
|
 from a tftp server on 
  the network
|
 from ROM
|
The source of the Cisco IOS image is determined from the boot field setting of the router's configuration register.
|
The default setting for the configuration register indicates that the router should attempt to load a Cisco IOS image from flash memory.
|
If the router finds a valid IOS image, it searches for a valid configuration file.
|
If your router does not find a valid system image, or if its configuration file is corrupted at startup, and the configuration register (bit 13) is set to enter ROM monitor mode, the system enters ROM monitor mode.
|
The configuration file, saved in NVRAM, is loaded into main memory and executed one line at a time.
|
These configuration commands start routing processes, supply addresses for interfaces, and set media characteristics.
|
If no configuration file exists in NVRAM, the operating system executes a question-driven initial configuration routine called the system configuration dialog.

This special mode is also called the Setup mode.
@@
The Cisco IOS software provides you with access to several different command modes.
|
Each command mode provides a different group of related commands.
|
The Cisco command line user interface is called EXEC.
|
EXEC has two modes:

 User mode
|
 Privileged mode
|
For security purposes the two EXEC modes serve as two levels of access to Cisco IOS commands.
|
EXEC user commands allow you to

 connect to remote devices
|
 make temporary changes 
  to terminal settings
|
 perform basic tests
|
 list system information
|
If you want to access privileged mode you have to enter a password.
|
The commands available in Privileged mode also include all those available in User mode.
|
You can use Privileged EXEC commands to

 set operating parameters
|
 perform a detailed examination 
  of the router's status
|
 test and debug router operation
|
 access global and other included 
  configuration modes
@@
From Privileged mode you can enter global configuration mode.
|
This gives you access to configuration commands that affect the system as a whole, and to other configuration modes.
|
You can specify the source of the configuration commands as being from

 a terminal
|
 memory
|
 the network
|
You can access many other specific configuration modes from Global Configuration mode that allow complex configurations to be performed.
|
If the router does not have a configuration file it will automatically enter Setup mode when you switch it on.
|
Setup mode presents you with a prompted dialog, called the system configuration dialog, in which you establish an initial configuration.
|
If the router does not find a valid operating system image, or if you interrupt the boot sequence, the system may enter ROM monitor mode.
|
From ROM monitor mode you can boot the device or perform diagnostic tests.
@@
